//package com.dotflat.satistics.vo.area;
//
//import com.matt.foundation.utils.MathUtil;
//import lombok.Data;
//
//import java.util.Map;
//
//import static com.matt.foundation.function.TimeComputeFunction.TIME_NAME;
//
///**
// * *******************************
// * Created by Tim.
// * form com.matt
// * on 2018/8/6
// * *******************************
// */
//@Data
//public class NurseryVo {
//    private String timeName;
//    private Integer nurseryCount;
//    private Integer limitCount;
//    private Double rate;
//
//    public static NurseryVo of(Map map){
//        NurseryVo vo = new NurseryVo();
//        vo.setTimeName(map.get(TIME_NAME).toString());
//        vo.setNurseryCount(map.get("nurseryCount") == null ? 0 : Integer.valueOf(map.get("nurseryCount").toString()));
//        vo.setLimitCount(map.get("limitCount") == null ? 0 : Integer.valueOf(map.get("limitCount").toString()));
//        vo.setRate(MathUtil.divide(vo.getNurseryCount(), vo.getLimitCount()));
//        return vo;
//    }
//}
